package cn.tedu.submarine;

import javax.swing.*;

public class Mine extends SeaObject {

    Mine(int x,int y){
        super(11,11,x,y,1);

    }
    /** 重写move移动    */
    public void move(){
        y-=speed;//y-(向右)
    }

    public ImageIcon getImage(){
        return Images.mine;
    }
    public boolean isOutOfBound(){
        return this.y<=150-this.height;
    }



}
